package com.fordmotor.exception;

public enum RuntimeError{
    SYSTEM_ERROR(500,"系统异常！"),
    ABSENT_REQPARAMS(100, "缺少请求参数!"),
    AUTHERROR_REQPARAMS(101, "签名验证错误!"),
    SINGNATURE_TIMEOUT(102, "签名过期!"),
    SERVICE_INTERLAN_ERROR(109,"服务内部出错");
    private Integer code;
    private String msg;
    private String errorMessage;
    RuntimeError(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    RuntimeError(Integer code, String msg,String errorMessage) {
        this.code = code;
        this.msg = msg;
        this.errorMessage = errorMessage;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
